package com.ruoyi.huanjing.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 文件信息对象 file_info
 * 
 * @author ruoyi
 * @date 2025-07-12
 */
public class FileInfo implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键自增ID */
    private Long id;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 大小 */
    @Excel(name = "大小")
    private String size;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 路径 */
    @Excel(name = "路径")
    private String filePath;

    /** 标识 */
    @Excel(name = "硬盘标识")
    private String diskIdentity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productName", getProductName())
            .append("fileName", getFileName())
            .append("size", getSize())
            .append("time", getTime())
            .append("fileType", getFileType())
            .append("filePath", getFilePath())
            .toString();
    }

    public String getDiskIdentity() {
        return diskIdentity;
    }

    public void setDiskIdentity(String diskIdentity) {
        this.diskIdentity = diskIdentity;
    }
}
